<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>demo 2-4</title>
	</head>
	<body>
	</body>
	<script>
		var str = "welcome";
		for(var i = 0;i < str.length;i++){
			console.log(str[i]);
		}
		console.log(i);
	</script>
</html>